package com.stylefeng.guns.modular.train.service.impl;

import com.stylefeng.guns.common.persistence.dao.ContestPointsMapper;
import com.stylefeng.guns.common.persistence.model.ContestPoints;
import com.stylefeng.guns.common.persistence.model.NetworkTrainPoints;
import com.stylefeng.guns.common.persistence.dao.NetworkTrainPointsMapper;
import com.stylefeng.guns.common.persistence.service.impl.PointServiceImpl;
import com.stylefeng.guns.modular.train.service.INetworkTrainPointsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 网络培训积分
 服务实现类
 * </p>
 *
 * @author jondai
 * @since 2017-12-28
 */
@Service
public class NetworkTrainPointsServiceImpl extends PointServiceImpl<NetworkTrainPointsMapper, NetworkTrainPoints> implements INetworkTrainPointsService {

    @Autowired
    private NetworkTrainPointsMapper networkTrainPointsMapper;

    @Override
    public List<NetworkTrainPoints> selectInEmpCode(List<String> empCodes, String year) {
        return networkTrainPointsMapper.selectInEmpCode(empCodes,year);
    }

//    @Override
//    public List<NetworkTrainPoints> selectInEmpCode(List<String> empCodes, Double min, Double max) {
//        return null;
//    }
//
//    @Override
//    public List<NetworkTrainPoints> selectInEmpCode(List<String> empCodes) {
//        return null;
//    }

    @Override
    public Double sumIntegralInEmpCode(List<String> item, String year) {
        return networkTrainPointsMapper.sumIntegralInEmpCode(item,year);
    }
}
